package com.tanklab.signature.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="审批对象", description="审批信息表")
@TableName("approvallogs")
public class Approvallogs {

    @TableId(value = "id_logs", type = IdType.AUTO)
    private Long idLogs;

    // 关联的申请ID
    @TableField("id_request")
    private Long idRequest;

    // 审批人openid
    @TableField("approver_openid")
    private String approverOpenid;

    // 审批行为 (approve:通过, reject:拒绝)
    @TableField("action")
    private String action;

    // 审批时间
    @TableField("action_time")
    private String actionTime;

    // 审批意见
    @TableField("comments")
    private String comments;

    // 审批记录哈希
    @TableField("approvallogs_hash")
    private String approvallogsHash;

    // 审批记录交易ID
    @TableField("approvallogs_tx_id")
    private String approvallogsTxId;

    // 签名ID字段
    @TableField("signature_id")
    private Long signatureId;
}